Thread: DevC++ no longer compiling, [Linker error]

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Apr 2008
    Location
    Australia
    Posts
    55

    DevC++ no longer compiling, [Linker error]

    EDIT: Solution found: Tools > Compiler Options > Settings > Linker > Do not use standard system startup files or libraries. End edit.


    hi,
    Just wondering if there's some thing (i.e setting?) that could be changed to fix this issue before I decide to completely reinstall DevC++;

    For whatever reason, I can now no longer compile even the most basic code without getting various [Linker error] undefined reference etc errors when trying to compile a single source file, though I previously could without issue. However, creating a project and compiling the exact same code (same location etc), everything compiles and runs fine.

    Code:
    #include <iostream>
    using namespace std;
    
    int main()
    {}
    Errors;
    Code:
    [Warning] cannot find entry symbol _mainCRTStartup; defaulting to 00401000 
    \Temp\ccGAbaaa.o(.text+0x17) In function `ZSt17__verify_groupingPKcjRKSs': 
    [Linker error] undefined reference to `std::string::size() const' 
    \Temp\ccGAbaaa.o(.text+0x135) In function `main':
    And various other, similar, errors.

    Please note: I'm only a beginner , but as I said, if I use this exact same code with a project it works fine. It's as if I've done something to DevC++ to cause this, but I can't for the life of me see how/where I would/could of done this.
    I'm using DevC++ v4.9.9.2.

    Please let me know if any other info may help.
    Last edited by Tropod; 12-22-2008 at 05:45 AM. Reason: Solution found

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  2. [Linker Error] Unresolved external
    By Bachatero in forum C Programming
    Replies: 4
    Last Post: 05-18-2007, 11:35 PM
  3. Strange/false errors
    By Ganoosh in forum Windows Programming
    Replies: 8
    Last Post: 10-20-2005, 04:54 PM
  4. OpenGL in devc++
    By Mipix in forum Game Programming
    Replies: 5
    Last Post: 07-21-2003, 01:21 PM
  5. please help me
    By insane in forum Game Programming
    Replies: 8
    Last Post: 05-12-2003, 12:40 AM